<?php
class Hotspots
{
	/* This class will interface directly with the MySQL database, and provide
	 * methods for retrieving and adding hotspots.
	 */

	private $UID,
		$hotspots,
		$count;

	public function __construct($UID){
		//get Hotspots for this user from the Database
	}
	public function getHotspots(){
		//return an array of hotspots
	}
	public function getCount(){
		$sql = "SELECT COUNT(*) AS num_hotspots FROM hotspots WHERE uid=" . $this->UID;
		$result = mysql_query($sql);
		$row = mysql_fetch_array($result, MYSQL_ASSOC));	
		$this->count = $row['num_hotspots'];
		return $this->count;
	}
	public function addHotspot($hotspot){
		//add this hotspot to the list
	}
	public function removeHotspot($hotspot){
		//remove this hotspot from the list
	}
}